-
Notifications
You must be signed in to change notification settings - Fork 5.1k
/
library.json
491 lines (491 loc) · 13.8 KB
/
library.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
{
"swagger": "2.0",
"info": {
"version": "2019-06-01-preview",
"title": "ArtifactsClient"
},
"x-ms-parameterized-host": {
"hostTemplate": "{endpoint}",
"useSchemePrefix": false,
"parameters": [
{
"$ref": "#/parameters/Endpoint"
}
]
},
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/libraries": {
"get": {
"tags": [
"Library"
],
"operationId": "Library_List",
"x-ms-examples": {
"List Libraries": {
"$ref": "./examples/Library_ListByWorkspace.json"
}
},
"description": "Lists Library.",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK.",
"schema": {
"$ref": "#/definitions/LibraryListResponse"
}
},
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "./artifacts.json#/definitions/CloudError"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/libraries/{libraryName}/flush": {
"post": {
"tags": [
"Library"
],
"operationId": "Library_Flush",
"x-ms-examples": {
"Flush Library": {
"$ref": "./examples/Library_Flush.json"
}
},
"description": "Flush Library",
"x-ms-long-running-operation": true,
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/LibraryNameParameter"
}
],
"responses": {
"200": {
"description": "Ok."
},
"202": {
"description": "Accepted.",
"schema": {
"$ref": "#/definitions/LibraryResourceInfo"
}
},
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "./artifacts.json#/definitions/CloudError"
}
}
}
}
},
"/libraryOperationResults/{operationId}": {
"get": {
"tags": [
"Library"
],
"operationId": "Library_GetOperationResult",
"x-ms-examples": {
"Get Operation Result for Library": {
"$ref": "./examples/Library_GetOperationResult.json"
}
},
"description": "Get Operation result for Library",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/OperationId"
}
],
"responses": {
"200": {
"description": "Ok.",
"schema": {
"$ref": "#/definitions/LibraryResource"
}
},
"202": {
"description": "Accepted.",
"schema": {
"$ref": "#/definitions/OperationResult"
}
},
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "./artifacts.json#/definitions/CloudError"
}
}
}
}
},
"/libraries/{libraryName}": {
"delete": {
"tags": [
"Library"
],
"operationId": "Library_Delete",
"x-ms-examples": {
"Delete Library": {
"$ref": "./examples/Library_Delete.json"
}
},
"description": "Delete Library",
"x-ms-long-running-operation": true,
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/LibraryNameParameter"
}
],
"responses": {
"200": {
"description": "Ok."
},
"202": {
"description": "Accepted.",
"schema": {
"$ref": "#/definitions/LibraryResourceInfo"
}
},
"409": {
"description": "Conflict."
},
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "./artifacts.json#/definitions/CloudError"
}
}
}
},
"get": {
"tags": [
"Library"
],
"operationId": "Library_Get",
"description": "Get Library",
"x-ms-examples": {
"Get Library": {
"$ref": "./examples/Library_Get.json"
}
},
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/LibraryNameParameter"
}
],
"responses": {
"200": {
"description": "OK.",
"schema": {
"$ref": "#/definitions/LibraryResource"
}
},
"304": {
"description": "Not modified."
},
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "./artifacts.json#/definitions/CloudError"
}
}
}
},
"put": {
"tags": [
"Library"
],
"operationId": "Library_CreateOrAppend",
"x-ms-examples": {
"Create Library": {
"$ref": "./examples/Library_CreateOrAppend.json"
}
},
"description": "Creates a library with the library name. Use query param 'comp=appendblock' to append the data to the library resource created using the create operation.",
"x-ms-long-running-operation": true,
"consumes": [
"application/octet-stream"
],
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/LibraryNameParameter"
},
{
"$ref": "#/parameters/Component"
},
{
"name": "content",
"in": "body",
"description": "Library file chunk. Use this content in with append operation.",
"required": false,
"schema": {
"format": "binary",
"type": "string"
}
},
{
"name": "x-ms-blob-condition-appendpos",
"in": "header",
"description": "Set this header to a byte offset at which the block is expected to be appended. The request succeeds only if the current offset matches this value. Otherwise, the request fails with the AppendPositionConditionNotMet error (HTTP status code 412 – Precondition Failed)",
"required": false,
"type": "integer",
"format": "int64"
}
],
"responses": {
"200": {
"description": "Ok."
},
"201": {
"description": "This will be returned in case of append operation."
},
"202": {
"description": "In case of create operation, library resource information will be returned.",
"schema": {
"$ref": "#/definitions/LibraryResourceInfo"
}
},
"412": {
"description": "This will happen in case the offset value provided in x-ms-blob-condition-appendpos doesn't match with the current offset value."
},
"default": {
"description": "An error response received from the Azure Synapse service.",
"schema": {
"$ref": "./artifacts.json#/definitions/CloudError"
}
}
}
}
}
},
"definitions": {
"OperationResult": {
"description": "Operation status for the operation",
"type": "object",
"properties": {
"status": {
"readOnly": true,
"type": "string",
"description": "Operation status"
},
"error": {
"x-ms-client-flatten": true,
"description": "Error data",
"$ref": "./artifacts.json#/definitions/CloudErrorBody"
}
}
},
"SubResource": {
"description": "Azure Synapse nested resource, which belongs to a workspace.",
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource"
}
]
},
"LibraryListResponse": {
"description": "A list of Library resources.",
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "array",
"description": "List of Library.",
"items": {
"$ref": "#/definitions/LibraryResource"
}
},
"nextLink": {
"description": "The link to the next page of results, if any remaining results exist.",
"type": "string"
}
}
},
"LibraryResourceInfo": {
"description": "Library resource info ",
"type": "object",
"properties": {
"id": {
"readOnly": true,
"type": "string",
"description": "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
},
"recordId": {
"readOnly": true,
"type": "integer",
"description": "record Id of the library/package."
},
"state": {
"readOnly": true,
"type": "string",
"description": "Provisioning status of the library/package."
},
"created": {
"readOnly": true,
"type": "string",
"description": "The creation time of the library/package."
},
"changed": {
"readOnly": true,
"type": "string",
"description": "The last updated time of the library/package."
},
"type": {
"readOnly": true,
"type": "string",
"description": "The type of the resource. E.g. LibraryArtifact"
},
"name": {
"readOnly": true,
"type": "string",
"description": "Name of the library/package."
},
"operationId": {
"readOnly": true,
"type": "string",
"description": "Operation Id of the operation performed on library/package."
},
"artifactId": {
"readOnly": true,
"type": "string",
"description": "artifact Id of the library/package."
}
}
},
"LibraryResource": {
"description": "Library response details",
"allOf": [
{
"$ref": "#/definitions/SubResource"
}
],
"properties": {
"properties": {
"$ref": "#/definitions/LibraryResourceProperties",
"description": "Library/package properties."
}
},
"required": [
"properties"
]
},
"LibraryResourceProperties": {
"description": "Library/package properties",
"type": "object",
"properties": {
"name": {
"readOnly": true,
"type": "string",
"description": "Name of the library/package."
},
"path": {
"readOnly": true,
"type": "string",
"description": "Location of library/package in storage account."
},
"containerName": {
"readOnly": true,
"type": "string",
"description": "Container name of the library/package."
},
"uploadedTimestamp": {
"readOnly": true,
"type": "string",
"description": "The last update time of the library/package."
},
"type": {
"readOnly": true,
"type": "string",
"description": "Type of the library/package."
},
"provisioningStatus": {
"readOnly": true,
"type": "string",
"description": "Provisioning status of the library/package."
},
"creatorId": {
"readOnly": true,
"type": "string",
"description": "Creator Id of the library/package."
}
}
}
},
"parameters": {
"LibraryNameParameter": {
"name": "libraryName",
"in": "path",
"maxLength": 100,
"required": true,
"type": "string",
"description": "file name to upload. Minimum length of the filename should be 1 excluding the extension length.",
"x-ms-parameter-location": "method"
},
"OperationId": {
"name": "operationId",
"in": "path",
"required": true,
"type": "string",
"description": "operation id for which status is requested",
"x-ms-parameter-location": "method"
},
"ApiVersionParameter": {
"name": "api-version",
"in": "query",
"required": true,
"type": "string",
"description": "The Synapse client API Version."
},
"Component": {
"name": "comp",
"in": "query",
"required": false,
"type": "string",
"description": "If this param is specified with value appendblock, the api will append the data chunk provided in body to the library created.",
"x-ms-parameter-location": "method"
},
"Endpoint": {
"name": "endpoint",
"description": "The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.",
"required": true,
"type": "string",
"in": "path",
"x-ms-skip-url-encoding": true,
"x-ms-parameter-location": "client"
}
}
}